package com.hub.dto.asset;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class RegionInfoDto {
    private Long id;

    @NotNull(message = "区域名不能为空")
    @Size(min=2,max = 20, message = "区域名最短2个字符，最长不能超过20字符")
    private String regionName;
    //父级Id
    private Long parentId;

    @Size(max = 200, message = "备注最长不能超过200字符")
    private String remark;
}
